import 'package:flutter/material.dart';

class DropdownMenuBuilder {
  final Widget dropDownWidget;
  final double dropDownHeigth;

  DropdownMenuBuilder(
      {@required this.dropDownWidget, @required this.dropDownHeigth});
}

/// MaskWidget组件编写
class SortCondition {
  String name;
  bool isSelected;
  SortCondition({this.name, this.isSelected});
}

// typedef OnItemTap<T> = void Function(T value);
typedef OnItemTap<T> = void Function();

class DropDownHeaderItem {
  // final int index;
  final String title;
  final IconData iconData;
  final double iconSize;
  final TextStyle style;
  final int flexRatio;
  // DropDownHeaderItem(this.title, {this.iconData, this.iconSize, this.style, this.index = 0});
  DropDownHeaderItem(this.title,
      {this.iconData, this.iconSize, this.style, this.flexRatio = 1});
}
